<!DOCTYPE html>
<html lang="ch-CN">
<head>
    <meta charset="UTF-8">
    <title>弹性盒子练习</title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }

    a {
        text-decoration: none;
        color: white;
        font-size: 20px;
        border: wheat 1px solid;
        border-radius: 10%;
        padding: 10px;
    }

    ul {
        list-style: none;
    }

    .body {
        height: 100vh;
        background-image: url("../images/bg.jpg");
    }

    .header {
        height: 70px;
        padding: 0 20px;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header ul {
        display: flex;
        justify-content: flex-start;
    }

    .header ul li {
        margin: 0 10px;
    }

    .container {
        height: calc(100vh - 70px);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container .container_nav {
        /*background-color: #888888;*/
        width: 1000px;
        height: 300px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-wrap: wrap;
    }

    .container .container_nav .items {
        width: 180px;
        height: 200px;
        /*background-color: pink;*/
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        transition: .3s linear;
        cursor: pointer;
    }

    .container .container_nav .items:hover {
        box-shadow: 0 0 30px #888888;
        transform: scale(1.03);
    }

    .container .container_nav .items:nth-of-type(1) {
        background-color: #595CA8;
    }

    .container .container_nav .items:nth-of-type(2) {
        background-color: #FF9D2E;
    }

    .container .container_nav .items:nth-of-type(3) {
        background-color: #01A6DE;
    }

    .container .container_nav .items:nth-of-type(4) {
        background-color: #015E91;
    }

    .container .container_nav .items:nth-of-type(5) {
        background-color: #1DC128;
    }

    .container .container_nav .items span {
        font-size: 20px;
    }
</style>
<body>
<div class="body">
    <div class="header">
        <img src="../images/logo.png" alt="">
        <ul>
            <li><a href="#">国内校区</a></li>
            <li><a href="#">缅甸校区</a></li>
            <li><a href="#">非洲校区</a></li>
            <li><a href="#">美国校区</a></li>
        </ul>
    </div>
    <div class="container">
        <div class="container_nav">
            <div class="items">
                <div>
                    <img src="../images/item1.png" alt="">
                </div>
                <span>我的邮箱</span>
            </div>
            <div class="items">
                <div>
                    <img src="../images/item2.png" alt="">
                </div>
                <span>云服务</span>
            </div>
            <div class="items">
                <div>
                    <img src="../images/item3.png" alt="">
                </div>
                <span>手机课堂</span>
            </div>
            <div class="items">
                <div>
                    <img src="../images/item4.png" alt="">
                </div>
                <span>微信课堂</span>
            </div>
            <div class="items">
                <div>
                    <img src="../images/item5.png" alt="">
                </div>
                <span>在线服务</span>
            </div>
        </div>
    </div>
</div>
</body>
</html>